package com.winbomb.simulife.impl.events;

import com.winbomb.simulife.World;
import com.winbomb.simulife.base.IChoice;
import com.winbomb.simulife.framework.Pixmap;
import com.winbomb.simulife.game.screens.FinalExamScreen;
import com.winbomb.simulife.impl.BaseEvent;
import com.winbomb.simulife.impl.choices.ChangeScreenChoice;

public class FinalExamEvent extends BaseEvent {

	public FinalExamEvent(World world) {
		super(world);
	}

	@Override
	public Pixmap getAnimation() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getDescription() {
		return "期末考试";
	}

	@Override
	public boolean isEnable() {
		if (!master.getIdentity().isStudent()) {
			return false;
		}

		return world.getMonth() == 2 || world.getMonth() == 8;
	}

	@Override
	public IChoice[] getChoices() {
		return new IChoice[] { new ChangeScreenChoice("参加考试", FinalExamScreen.class) };
	}

}
